﻿using System;
using System.Collections.Generic;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Able.Api.Tests
{
    [TestClass]
    public class UnitTest2
    {
        string url = "http://localhost:1111/api";
        Dictionary<string, object> dict = new Dictionary<string, object>();
        [TestMethod]
        public void TestGet()
        {
            url += "/account/userinfo";
            dict.Add("email", "1184424167@qq.com");
            dict.Add("hasregistered", "false");
            dict.Add("loginprovider", "provider");

            var str = ApiHelper.SendPost(url, dict);
        }

        [TestMethod]
        public void TestReigster()
        {
            url += "/account/register";
            dict.Add("email", "1184424167@qq.com");
            dict.Add("password", "1");
            dict.Add("confirmpassword", "2");

            var str = ApiHelper.SendPost(url, dict);
        }
    }
}
